<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Profile.ascx.cs" Inherits="admin_Profile" %>
<%@ Register Src="../pages/PersonalInfoControl.ascx" TagName="PersonalInfoControl"
    TagPrefix="uc1" %>
<uc1:PersonalInfoControl ID="ucPerInfo" runat="server" />
<br />
<span style="margin-left:240px;"><asp:Button ID="btnUpdateInfo" runat="server" Text="Update" OnClick="btnUpdateInfo_Click" ValidationGroup="A" /></span><br />
<table  style="margin-left:100px;">
    <tr>
        <td style="width: 134px">
        </td>
        <td style="width: 183px">
        </td>
        <td style="width: 216px">
        </td>
    </tr>
    <tr>
        <td style="width: 134px">
            Current password:</td>
        <td style="width: 183px">
            <asp:TextBox ID="txtCurrentPass" runat="server" Width="150px" TextMode="Password"></asp:TextBox></td>
        <td style="width: 216px">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please input your password" ControlToValidate="txtCurrentPass" ValidationGroup="B" Display="Dynamic">*</asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="width: 134px">
            New password:</td>
        <td style="width: 183px">
            <asp:TextBox ID="txtNewPass" runat="server" Width="150px" TextMode="Password"></asp:TextBox></td>
        <td style="width: 216px">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please enter new password" ControlToValidate="txtNewPass" ValidationGroup="B">*</asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="width: 134px">
            Confirm:</td>
        <td style="width: 183px">
            <asp:TextBox ID="txtConfirm" runat="server" Width="150px" TextMode="Password"></asp:TextBox></td>
        <td style="width: 216px">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please enter confirm password" ControlToValidate="txtConfirm" ValidationGroup="B">*</asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtNewPass"
                ControlToValidate="txtConfirm" Display="Dynamic" ErrorMessage="Confirm password does not match"
                ValidationGroup="B"></asp:CompareValidator></td>
    </tr>
    <tr>
        <td style="width: 134px">
        </td>
        <td style="width: 183px">
            <asp:Button ID="btnChangePass" runat="server" Text="Change password" ValidationGroup="B" OnClick="btnChangePass_Click" /></td>
        <td style="width: 216px">
        </td>
    </tr>
</table>
